﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CosiNet
{
    /// <summary>
    /// Methods for running a COSIL application
    /// </summary>
    public static class Application
    {
        /// <summary>
        /// Run a COSIL Program
        /// </summary>
        /// <param name="program"></param>
        public static void Run(byte[] program)
        {
            VM.VM vm = new VM.VM((program.Length + 1024), program);
            vm.Run();
        }
    }
}
